import { http } from "@/utils/https"

/**
 * 获取微信支付参数
 * @param data  orderId 订单id
 * @returns
 */
export const getPayWxPayMiniPayAPI = (data: { order_Id: string }) => {
  return http<IWechatOrder>({
    method: 'POST',
    url: '/order/pay',
    data,
  })
}


export const getPayMockAPI = (data: { orderId: string }) => {
  return http({
    method: 'GET',
    url: '/pay/mock',
    data,
  })
}
export interface IWechatOrder {
  package: string;
  appid: string;
  sign: string;
  partnerid: string;
  prepayid: string;
  noncestr: string;
  timestamp: string;
}
